package Day20;

public class Over {
    public static void main(String[] args) {
        AA a = new AA();
      int res = a.sum(1,2,3,4);
        System.out.println(res);
    }
}

class AA{
    public int sum(int... nums){
        int res = 0;
        for(int i = 0; i < nums.length; i++){
            res += nums[i];
        }
        return res;
    }
}


